package code;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("/context/Beans.xml");
        SpringHelloWorld helloWorld = (SpringHelloWorld) applicationContext.getBean("helloWorld");
        helloWorld.execute();
    }
}
